<?php
namespace app\index\model;
use think\Model;
	class Fz extends Model
	{
		protected $connection="admin";
		public function search(){
			$data=$this->field("fztupian")->select();
			return $data;
			
		}
		public function sel($index){
			$data['index']=round($this->count()/5);
			$data['info']=$this->field("fzname,fztupian,fzprice,fid")->limit($index*5,5)->select();
			return $data;
		}
		public function insert(){
			$data=$this->field("fzname,fztupian,fzprice,fid");
		}
		
	}